package com.qixin.api.bean;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 *  充电车辆信息
 * </p>
 *
 * @author 张子艺
 * @since 2018-11-16
 */
@TableName("com_car_charge")
public class ComCarCharge extends Model<ComCarCharge> {

    private static final long serialVersionUID = 1L;

	private Long id;
    /**
     * 车名
     */
	@TableField("car_name")
	private String carName;
    /**
     * 车型号
     */
	@TableField("car_model")
	private String carModel;
    /**
     * 车品牌
     */
	@TableField("car_brand")
	private String carBrand;
    /**
     * 续航
     */
	@TableField("car_renewal")
	private String carRenewal;
    /**
     * 保险  有  无
     */
	@TableField("car_insurance")
	private String carInsurance;
    /**
     * 车辆余额
     */
	private BigDecimal moeny;
    /**
     * 车牌
     */
	@TableField("car_plate")
	private String carPlate;
    /**
     * 关联用户ID
     */
	@TableField("relacation_id")
	private Long relacationId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCarName() {
		return carName;
	}

	public void setCarName(String carName) {
		this.carName = carName;
	}

	public String getCarModel() {
		return carModel;
	}

	public void setCarModel(String carModel) {
		this.carModel = carModel;
	}

	public String getCarBrand() {
		return carBrand;
	}

	public void setCarBrand(String carBrand) {
		this.carBrand = carBrand;
	}

	public String getCarRenewal() {
		return carRenewal;
	}

	public void setCarRenewal(String carRenewal) {
		this.carRenewal = carRenewal;
	}

	public String getCarInsurance() {
		return carInsurance;
	}

	public void setCarInsurance(String carInsurance) {
		this.carInsurance = carInsurance;
	}

	public BigDecimal getMoeny() {
		return moeny;
	}

	public void setMoeny(BigDecimal moeny) {
		this.moeny = moeny;
	}

	public String getCarPlate() {
		return carPlate;
	}

	public void setCarPlate(String carPlate) {
		this.carPlate = carPlate;
	}

	public Long getRelacationId() {
		return relacationId;
	}

	public void setRelacationId(Long relacationId) {
		this.relacationId = relacationId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ComCarCharge{" +
			"id=" + id +
			", carName=" + carName +
			", carModel=" + carModel +
			", carBrand=" + carBrand +
			", carRenewal=" + carRenewal +
			", carInsurance=" + carInsurance +
			", moeny=" + moeny +
			", carPlate=" + carPlate +
			", relacationId=" + relacationId +
			"}";
	}
}
